cannot change integer variable from nested function

welcome to shbcf.ru